Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Late reply

I know this is a very late reply, but since very little is documented on this I thought I might share my findings.

To obtain all values from the field as Vector AND be able to work with the vector (loop) I did the following:

//Vector containing week numbers
Vector <Double> weekRange = new Vector <Double>();

if (doc.hasItem("weekRange")){
//Get Vector of unknown type from document
Vector <?> tmp = doc.getItemValue("weekRange");
//Copy values to the Vector of type Double
for(Object d : tmp) {
weekRange.add(Double.parseDouble(d.toString()));
}
}

//Loop all week numbers in Vector
for (Double weekNo: weekRange){
//Some logic here...
}


Feedback response number WEBB9LKJD5 created by ~Sean Minjumivitchflar on 06/30/2014

"the expression of type vector need... (~Denise Prehipi... 16.Feb.11)
. . Try a different getItemValue method... (~Tate Quetgerob... 16.Feb.11)
. . . . I did... (~Denise Prehipi... 16.Feb.11)
. . Unchecked exception (~Kelly Ekfookon... 16.Feb.11)
. . . . question (~Denise Prehipi... 16.Feb.11)
. . . . Don't supress the warnings. Use Vec... (~Sanjay Quettum... 17.Feb.11)
. . . . . . Warning's gone! (~Denise Prehipi... 17.Feb.11)
. . . . . . . . Late reply (~Sean Minjumivi... 30.Jun.14)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS